package com.csist.client;

import com.csist.dao.UserDao;

import java.util.Scanner;

/**
 * @ClassName Client
 * @Description 服务器端
 * @Author 汪宇
 * @Date 2021/6/13 23:52
 * @ModifyDate 2021/6/13 23:52
 * @Version 1.0
 */
public class Client {
    private static Scanner input = new Scanner(System.in);
    private static ClientFunction function = new ClientFunction();
    public static void main(String[] args) {
        int instruct;
        do {
            System.out.println("1、注册   2、登录   0、退出");
            instruct = input.nextInt();

            if (instruct == 1){
                function.register();
            }
            if (instruct == 2){
                function.login();
            }
        } while (instruct!=0);
    }
}
